import request from "@/utils/requests/index";
import { RequestEnum } from '@/enums/httpEnum'

enum Api {
  // 获取营业额的图表数据
  GET_TURNOVER_DATA_PATH = '/admin/report/turnoverStatistics',
}

export function getTurnoverChangeReq(data: { begin:string, end: string }) {
  return request.request({
    method: RequestEnum.GET,
    url: Api.GET_TURNOVER_DATA_PATH + `?begin=${data.begin}&end=${data.end}`,
  })
}